#! -*- encoding: utf-8 -*-
print("""By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10 001st prime number?""")
print("")

import math
import EulerHelper

i = 0
primes = []
while len(primes) != 10001:
    if i < 3:
        i += 1
    else:
        i += 2
    if EulerHelper.isPrime(i):
        primes.append(i)

print primes[-1:]
